package main.java.DMDE.model;

public enum Modifier {
	FINAL("final"), STATIC("static"), ABSTRACT("abstract");

	private String desc = null;

	private Modifier(String desc) {
		this.setDesc(desc);
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	/*
	 * Returns a description of the modifier
	 */
	public String toString() {
		return desc;
	}
	
	public boolean is(Modifier modifier) {
	    return modifier.toString().equals(this.toString());
	}
}
